#include "alarmdialog.h"

#include <QBoxLayout>
#include <QLabel>

AlarmDialog::AlarmDialog(QWidget *parent)
    : QWidget{parent}
{

}

AlarmDialog::AlarmDialog(QWidget *parent, QString tempTagName, QString tempTagArea,
                         QString tempTagRegeneratorNo): tagName(tempTagName), tagArea(tempTagArea),
    tagRegeneratorNo(tempTagRegeneratorNo)
{
    this->resize(600, 200);
    QBoxLayout * layout = new QVBoxLayout(this);
    QLabel * label = new QLabel("报警：" + tagArea + " " + tempTagRegeneratorNo + "号燃烧室小烟道交换异常");
    layout->addWidget(label);
}
